﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PrintText</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
html,body { 
	/* Default Font */
	font-family: 宋体, Arial, Helvetica, sans-serif;
	font-size: 10pt;
}
</style>

</head>

<body>
<P>
<TABLE style="BORDER-COLLAPSE: collapse" border=1 cellSpacing=0 
borderColor=#000000 cellPadding=1 width=800>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>定义</FONT></P></TD>
    <TD width=680><FONT size=2><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>void 
      PrintText(int x, int y, int w, int h, char* f, int px, int flag, unsigned int c, char* txt);<br>void PrintText2(int x, int y, int w, int h, char* f, int px, int flag, unsigned int c, int weight, char* txt);<br>void PrintText3(int x, int y, int w, int h, char* f, int px, int flag, unsigned int c1, unsigned int c2, int weight, char* txt);<br>void PrintText4(int x, int y, int w, int h, char* f, int px, int flag, char* fi, char* txt);<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>Sub PrintText(x As Integer, y As Integer, w As Integer, h As Integer, f As ZString Ptr, px As Integer, flag As Integer, c As UInteger, txt As ZString Ptr)<br>Sub PrintText2(x As Integer, y As Integer, w As Integer, h As Integer, f As ZString Ptr, px As Integer, flag As Integer, c As UInteger, weight As Integer, txt As ZString Ptr)<br>Sub PrintText3(x As Integer, y As Integer, w As Integer, h As Integer, f As ZString Ptr, px As Integer, flag As Integer, c1 As UInteger, c2 As UInteger, weight As Integer, txt As ZString Ptr)<br>Sub PrintText4(x As Integer, y As Integer, w As Integer, h As Integer, f As ZString Ptr, px As Integer, flag As Integer, fi As ZString Ptr, txt As ZString Ptr)<br><br><STRONG><FONT color=#0000ff>SDK_C：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_BASIC：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_Pascal：</FONT></STRONG><br>暂未公布<br><br><STRONG><FONT color=#0000ff>SDK_易语言：</FONT></STRONG><br>暂未公布<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>功能</FONT></P></TD>
    <TD width=680><FONT size=2><br>在图像中写字。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>参数</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>x：</FONT></STRONG><br>写字起点横坐标。<br><br><STRONG><FONT color=#0000ff>y：</FONT></STRONG><br>写字起点纵坐标。<br><br><STRONG><FONT color=#0000ff>w：</FONT></STRONG><br>写字宽度格式化范围。<br><br><STRONG><FONT color=#0000ff>h：</FONT></STRONG><br>写字高度格式化范围。<br><br><STRONG><FONT color=#0000ff>f：</FONT></STRONG><br>字体名字。<br><br><STRONG><FONT color=#0000ff>px：</FONT></STRONG><br>字体大小。<br><br><STRONG><FONT color=#0000ff>flag：</FONT></STRONG><br>字体特征和格式化显示方式，可参考：<A href="../def/font.htm">数据参考.文字风格</A>。<br><br><STRONG><FONT color=#0000ff>c：</FONT></STRONG><br>文字颜色。<br><br><STRONG><FONT color=#0000ff>txt：</FONT></STRONG><br>文字内容。<br><br><STRONG><FONT color=#0000ff>weight：</FONT></STRONG><br>描边边框宽度。<br><br><STRONG><FONT color=#0000ff>c1：</FONT></STRONG><br>文字颜色。<br><br><STRONG><FONT color=#0000ff>c2：</FONT></STRONG><br>描边颜色。<br><br><STRONG><FONT color=#0000ff>fi：</FONT></STRONG><br>纹理文件路径或内存地址，受 LoadMode 设置载入模式的影响。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>返回值</FONT></P></TD>
    <TD width=680><FONT size=2><br>无返回值。<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>补充说明</FONT></P></TD>
    <TD width=680><FONT size=2><br>PrintText [普通写字]<br>PrintText2 [写空心字]<br>PrintText3 [写描边字]<br>PrintText4 [写纹理字]<br><br></FONT></TD></TR>
  <TR>
    <TD width=120>
      <P align=center><FONT size=2>使用范例</FONT></P></TD>
    <TD width=680><FONT size=2><br><STRONG><FONT color=#0000ff>C++：</FONT></STRONG><br>无范例。<br><br><STRONG><FONT color=#0000ff>FreeBasic：</FONT></STRONG><br>无范例。</FONT></TD></TR></TABLE></P></body></HTML>